package hgz.stu.review.spring;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class App {

    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("spring-config/spring-propertyplaceholderconfigurer.xml");
        SolrUtils solrUtils = (SolrUtils) context.getBean("solrUtils");
        System.out.println(solrUtils.toString());

        DBConnetionBean dbConnectionBean = (DBConnetionBean) context.getBean("dbConnectionBean");
        System.out.println(dbConnectionBean.toString());
    }
}